package com.baiyue.service;

import com.baiyue.model.menu.MenuDataRequest;
import com.baiyue.model.menu.MenuTreeDataResponse;
import com.baiyue.model.menu.TreeNodeResponse;

import java.util.List;

/**
 *
 * @author 伍波
 * @date 2023-04-17
 */
public interface MenuService {

    /**
     * 新增菜单
     * @param request
     */
    void insertMenu(MenuDataRequest request);

    /**
     * 获取菜单树数据
     *
     * @return 菜单树
     */
    List<MenuTreeDataResponse> getMenuTreeByUser(MenuDataRequest request);

    /**
     * 获取所有菜单树
     * @param request
     * @return
     */
    List<MenuTreeDataResponse> getMenuTreeByAll(MenuDataRequest request);


    /**
     * 获取菜单树，用户新增时
     * @param request
     * @return
     */
    List<TreeNodeResponse> getAllMenuList(MenuDataRequest request);

}
